/**
 * 客户群管理
 */

import request from '@/utils/request'

/**
 * 客户群管理列表
 * @param data
 * @returns
 */
export const getGroupManageList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/group/list',
    method: 'POST',
    data
  })
}

/**
 * 同步企微成员
 * @param data
 * @returns
 */
export const syncGroupManage = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/group/sync',
    method: 'get',
    params: data
  })
}

// 群发记录
export const massRecord = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/mass/record',
    method: 'POST',
    data
  })
}

export const memberList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/member/list',
    method: 'POST',
    data
  })
}

// 客户详情基础数据
export const groupchatBasic = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/basic',
    method: 'get',
    params: data
  })
}
